import request from '@/utils/request'
// todo category.vue

// 获得知识分类表
// 树形结构
// http://localhost:8081/KnowCategory/getAll
export function getAllApi(params) {
  return request.get('/KnowCategory/getAll',{
    params: params 
  })
}
// 扁平数组
// http://localhost:8081/KnowCategory/getEasyClass
export function getEasyClassApi(params) {
  return request.get('/KnowCategory/getEasyClass',{
    params: params 
  })
}
// http://localhost:8081/KnowCategory/getSingleById
export function getSingleByIdApi(params) {
  return request.get('/KnowCategory/getSingleById',{
    params: params 
  })
}

// 新增知识分类
// http://localhost:8081/KnowCategory/Insert
export function cateInsertApi(params) {
  return request.get('/KnowCategory/Insert',{
    params: params 
  })
}

// 编辑知识分类
// http://localhost:8081/KnowCategory/Update
export function cateUpdateApi(params) {
  return request.get('/KnowCategory/Update',{
    params: params 
  })
}

// 删除知识分类
// http://localhost:8081/KnowCategory/DeleteByKnowCateId
export function cateDeleteByIDApi(params) {
  return request.get('/KnowCategory/DeleteByKnowCateId',{
    params: params 
  })
}

// todo tabLibrary.vue
// 获得标签表
// http://localhost:8081/labelCategory/getAllLable
export function getAllLableApi(params) {
  return request.get('/labelCategory/getAllLable',{
    params: params 
  })
}

// 新增标签
// http://localhost:8081/labelCategory/Insert
export function tabInsertApi(params) {
  return request.get('/labelCategory/Insert',{
    params: params 
  })
}

// 编辑标签
// http://localhost:8081/labelCategory/Update
export function tabUpdateApi(params) {
  return request.get('/labelCategory/Update',{
    params: params 
  })
}

// 删除标签
// http://localhost:8081/labelCategory/DeleteBylabelCateId
export function tabDeleteByIDApi(params) {
  return request.get('/labelCategory/DeleteBylabelCateId',{
    params: params 
  })
}

